package com.kl.component.shiro;



import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 自定义登陆令牌
 * @author zjb
 * @date 2015-1-4
 */
public class CaptchaUsernamePasswordToken extends UsernamePasswordToken {
	/** 描述 */
	private static final long serialVersionUID = -3178260335127476542L;

	public final static String TYPE_SYS = "SYS";
	public final static String TYPE_ACCOUNT = "ACCOUNT";

	private String captcha;

	private String type;

	private String code;

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public CaptchaUsernamePasswordToken() {
		super();
	}

	public CaptchaUsernamePasswordToken(String username, String password,
			boolean rememberMe, String host, String captcha) {
		super(username, password, rememberMe, host);
		this.captcha = captcha;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
